Today we will…
You will be completing a final project in teams of four.
A process of tracking changes to a file or set of files over time so that you can recall specific versions later.
GitHub makes it easy to have multiple people working on the same files at the same time.
You can host a URL of fun things (like the class text, these slides, a personal website, etc.) with GitHub pages.
Git is based on repositories.
.gitignoreSometimes there are files that you do not want to track.
.gitignore file specifies the files that git should intentionally ignore./bin, .DS_Store) or files/directories that you do not want to be shared (e.g., solutions/)..Rproj files!Create an exact copy of a remote repo on your local machine.
Tell git you have made changes you want to add to the repo.
The red line is a change we commit (add) to the repo.
The log of these changes (and the file history) is called your git commit history.
Update the copy of your repo on GitHub so it has the most recent changes you’ve made on your machine.
Update the local copy of your repo (the copy on your computer) with the version on GitHub.
When you have an existing local repo:
These occur when git encounters conflicting changes.
We will work on resolving merge conflicts today!
But when all else fails…
R PackagesWork in your console or an Rscript for this.
usethis package.gitcreds Package.(Nothing should happen.)
Generate Token.When prompted to Enter password or token:, paste your PAT.
You will be completing this activity in groups of 4.
IMPORTANT
This activity will only work if you follow the directions in the exact order that I have specified them. Do not work ahead of your group members!
Office Hours
Tuesday from 1:00-2:00pm and Wednesday 10:30-11:30am. None on Thursday or Friday.
Please grab separators from the sides of the room as you enter.
I will pass out a hard copy of the exam.
Canvas will unlock the .qmd template at the beginning of class.
Section 1: General Questions
Section 2: Short Answer
.qmd template from Canvas..qmd and .html files on Canvas by the end of class.Section 3: Open-Ended Analysis
.qmd file..qmd and .html file 24-hours after the end of class.
Comments from Week 5